package com.service_api.service;

import com.service_api.model.CompanyPeople;
import com.service_api.repository.CompanyPeopleRepository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyPeopleService {
    @Autowired
    CompanyPeopleRepository companyPeopleRepository;

    public List<CompanyPeople> CompanyPeopleAllByCity(String city){
        return companyPeopleRepository.findAllByCity(city);
    }
}
